package com.jason.dao;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

@Repository
public class BaseDao {
	@Autowired
	protected JdbcTemplate jdbcTemp;
	protected final Logger logger = LoggerFactory.getLogger(getClass());
	
	protected void addLog(Class clazz,String sql){
		LoggerFactory.getLogger(clazz).info(clazz.getName()+":"+sql);
	}
}
